﻿using System.Linq.Expressions;

namespace Farming.Repositories
{
    public interface IRepository<TEntity> where TEntity : class, new()
    {
        Task<int> DeleteAsync(Expression<Func<TEntity, bool>> expression);
        Task<int> DeleteAsync(int Id);
        Task<int> InsertAsync(List<TEntity> entities);
        Task<int> InsertAsync(TEntity entity);
    }
}